package com.zhu.shiroweb.controller;


import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 
 * @author zhu
 *
 */
@Controller
@RequestMapping("/admin")
public class AdminController {

	/**
	 *
	 * @param user
	 * @param request
	 * @return
	 */
	@RequestMapping("/test")
	public String adminTest() {
		//Subject subject = SecurityUtils.getSubject();
		//if(subject.hasRole("admin")) {
			return "admin";
		//}else {
		//	return "login";
		//}
		
	}

}
